﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CrossQuery.ConditionQuery
{
    public class ConditionValue
    {
        string code = "", display_value = "";

        public ConditionValue() { }

        public ConditionValue(string code, string display_value)
        {
            this.code = code;
            this.display_value = display_value;
        }

        public string Code
        {
            get { return code; }
            set { code = value; }
        }

        public string DisplayValue
        {
            get { return display_value; }
            set { display_value = value; }
        }

        public string ToFullString()
        {
            return code + " " + display_value;
        }

        public override string ToString()
        {
            return display_value;
        }
    }
}
